import scipy.optimize as opt
import numpy as np
import sympy#这也是一个科学计算库，很牛的，可以求导求微分、求积分等
from sympy import *
from scipy.misc import derivative
import scipy.optimize._minimize



if __name__ == '__main__':
    # 解方程无穷多解
    # 定义变量
    x = sympy.Symbol('x')
    y = sympy.Symbol('y')
    fx = x * 3 + y ** 2
    # 得到是x与y的关系式，
    print(sympy.solve(fx, x, y))
    print(2**(1/2))
